package com.dmx.fw.bean.mapping.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * ParameterDescription generated by MyEclipse - Hibernate Tools
 */
@Entity
@Table(name="SYSTEM_PARM_DESC")
public class ParameterDescription implements java.io.Serializable {

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO,generator="para_desc_seq_gen")
	@SequenceGenerator(name = "para_desc_seq_gen",sequenceName="PARM_DESC_ID")
	@Column(name="ID",precision=12,scale=0)
	private Long parmDescId;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_UPDATED_TIME")
	private Date lastUpdatedTime;
	
	@Column(name = "NAME",length=60)
	private String name;
	
	@Column(name="TYPE_CODE",length=60)
	private String typeCode;
	
	@Column(name="CAN_MODIFY")
	private boolean modifying;
	
	@Column(name="IS_SHOW")
	private boolean showing;
	
	@Column(name="SORT",precision=3,scale=0)
	private Long sort;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="CREATED_BY")
	private Operator createdOperator;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "CREATED_TIME")
	private Date createdTime;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="LAST_UPDATED_BY")
	private Operator lastUpdatedOperator;

	// 扩展字段
	@Column(name="EXT_FLD1_TITLE",length=60)
	private String extFld1Title;
	
	@Column(name="EXT_FLD1_VALID")
	private boolean extFld1Valid;

	@Column(name="EXT_FLD2_TITLE",length=60)
	private String extFld2Title;
	
	@Column(name="EXT_FLD2_VALID")
	private boolean extFld2Valid;

	/** default constructor */
	public ParameterDescription() {
	}

	/** full constructor */
	public ParameterDescription(String name, String typeCode,
			boolean modifying, boolean showing, Long sort,
			Operator createdOperator, Date createdTime,
			Operator lastUpdatedOperator) {
		this.name = name;
		this.typeCode = typeCode;
		this.modifying = modifying;
		this.showing = showing;
		this.sort = sort;
		this.createdOperator = createdOperator;
		this.createdTime = createdTime;
		this.lastUpdatedOperator = lastUpdatedOperator;
	}

	// Property accessors

	public Long getParmDescId() {
		return this.parmDescId;
	}

	public void setParmDescId(Long parmDescId) {
		this.parmDescId = parmDescId;
	}

	public Date getLastUpdatedTime() {
		return this.lastUpdatedTime;
	}

	public void setLastUpdatedTime(Date lastUpdatedTime) {
		this.lastUpdatedTime = lastUpdatedTime;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTypeCode() {
		return this.typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	public boolean getModifying() {
		return this.modifying;
	}

	public void setModifying(boolean modifying) {
		this.modifying = modifying;
	}

	public boolean getShowing() {
		return this.showing;
	}

	public void setShowing(boolean showing) {
		this.showing = showing;
	}

	public Long getSort() {
		return this.sort;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}

	public Operator getCreatedOperator() {
		return this.createdOperator;
	}

	public void setCreatedOperator(Operator createdOperator) {
		this.createdOperator = createdOperator;
	}

	public Date getCreatedTime() {
		return this.createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Operator getLastUpdatedOperator() {
		return this.lastUpdatedOperator;
	}

	public void setLastUpdatedOperator(Operator lastUpdatedOperator) {
		this.lastUpdatedOperator = lastUpdatedOperator;
	}

	public String getExtFld1Title() {
		return extFld1Title;
	}

	public void setExtFld1Title(String extFld1Title) {
		this.extFld1Title = extFld1Title;
	}

	public String getExtFld2Title() {
		return extFld2Title;
	}

	public void setExtFld2Title(String extFld2Title) {
		this.extFld2Title = extFld2Title;
	}

	public boolean isExtFld1Valid() {
		return extFld1Valid;
	}

	public void setExtFld1Valid(boolean extFld1Valid) {
		this.extFld1Valid = extFld1Valid;
	}

	public boolean isExtFld2Valid() {
		return extFld2Valid;
	}

	public void setExtFld2Valid(boolean extFld2Valid) {
		this.extFld2Valid = extFld2Valid;
	}

}